
#ifndef _PROJECTTREEWIDGETOPERATION_H_
#define _PROJECTTREEWIDGETOPERATION_H_

#include "OperationsApi.hpp"
#include "../OLCore/AbstractOperation.hpp"
#include "../OLApp/OperationsManager.hpp" 
#include "../OLWidgets/ProjectTreeWidget.hpp"


#include <QTreeWidgetItem>


namespace NSOperation {

	class OPERATIONSAPI ProjectTreeWidgetOperation :
		public NSCore::AbstractOperation
	{
		Q_OBJECT
	public:
		ProjectTreeWidgetOperation();
		~ProjectTreeWidgetOperation();

	public:
		virtual inline QString className() override { return "ProjectTreeWidgetOperation"; };

	public slots:
		void actionItemRemoveSlot(QTreeWidgetItem* item);
		void actionshowCurvatureSlot(QTreeWidgetItem* item, bool checked);
		void actionDataBaseItemDoubleClickedSlot(QTreeWidgetItem* item, int col);
		void actionSelectionChangedSlot(const QItemSelection& selected, const QItemSelection& deselected);
	};

	DynamicOperationRegister(ProjectTreeWidget, ProjectTreeWidgetOperation);

}

#endif


